//企业简历详情基本信息
import React, { Component } from 'react'
import {
    View,
    Text,
} from 'react-native';

import { Cresumeeducation_Style as styles } from '../../../../styles';
import Icon from 'react-native-vector-icons/Ionicons';
import fmt from '../../../util/fmtDateUtil';

export default class Cresume_education extends Component {
    constructor(props) {
        super(props);
    }
    render() {
        if (this.props.xzResumeEducation != undefined) {
            return (
                <View style={styles.edu_centerall}>

                    <View style={styles.edu_eve1}>
                        <View style={styles.edu_circle}></View>
                        <Text style={styles.edu_pos}>{this.props.xzResumeEducation.educationSchool}</Text>
                        <Text style={styles.edu_txt1}>{this.props.xzResumeEducation.educationEntrance == 0 ? '否' : this.props.xzResumeEducation.educationEntrance == 1 ? '是' : null}</Text>
                    </View>

                    <View style={styles.edu_onebottom}>

                        <View style={styles.edu_eve2}>
                            <Text style={styles.edu_com}>{this.props.xzResumeEducation.educationMajor}</Text>
                            <Text style={styles.edu_txt1}>{this.props.xzResumeEducation.educationLevel}</Text>
                        </View>

                        <View style={styles.edu_eve3}>
                            <Icon
                                name={'md-calendar'}
                                size={18}
                                color={'#aeaeae'} style={styles.edu_timeicon} />
                            <Text style={styles.edu_time}>{fmt(this.props.xzResumeEducation.enrollmentDate, 'yyyy-MM-dd')}</Text>
                            <Text style={styles.edu_time2}>-</Text>
                            <Text style={styles.edu_time}>{fmt(this.props.xzResumeEducation.graduateDate, 'yyyy-MM-dd')}</Text>
                            {/* <Text style={styles.edu_time3}>（2个月）</Text> */}
                        </View>

                    </View>
                </View >
            )
        } else {
            return null;
        }
    }
}